$(function () {

  $('.signout').click(function () {
    $('.signout-layer').show()
  })

  $('.btn-cancel').click(function () {
    $('.signout-layer').hide()
  })

  $('.more').click(function () {
    if (!$(this).hasClass('active')) {
      $(this).addClass('active').find('.more-msg').text('收起详情')
      $('.inner-p').css('height', 'auto')
    } else {
      $(this).removeClass('active').find('.more-msg').text('展开详情')
      $('.inner-p').css('height', '2.9rem')
    }
  })

  var mySwiper = new Swiper('.swiper-container', {
    slidesPerView: 2,
    slidesPerGroup : 2,
    direction : 'vertical',
    loop:true,
    navigation: {
      nextEl: '.swiper-button-next-custom',
      prevEl: '.swiper-button-prev-custom',
    }
  })

})